package com.dhcc.core.framework.constant;

/**
 * 系统常量
 *
 * @ClassName: Const
 * @Description: 描述
 * @author: cyf
 * @date: 2018年1月2日 上午9:29:07
 */
public class Constant {

    public static final String SEPARATOR_DOT = ".";
    public static final String SEPARATOR_UNDERLINE = "_";
    public static final String SEPARATOR_WAVYLINE = "~";
    public static final String SEPARATOR_LINE = "-";
    public static final String SEPARATOR_BACKSLASH = "/";
    public static final String SEPARATOR_COMMA = ",";
    public static final String SEPARATOR_COLON = ":";
    public static final String SEPARATOR_SEMICOLON = ";";
    /**
     * 树根id
     */
    public static final Long TREE_ROOT_ID = 0L;
    /**
     * 系统默认的管理员密码
     */
    public static final String DEFAULT_PWD = "1";
    /**
     * 管理员角色的名字
     */
    public static final String ROLE_ADMIN_CODE = "administrator";
    /**
     * everyone角色的名字
     */
    public static final String ROLE_EVERYONE_CODE = "everyone";
    /**
     * 超级管理员角色id
     */
    public static final Long ROLE_ADMIN_ID = 1L;
    /**
     * Everyone角色id
     */
    public static final Long ROLE_EVERYONE_ID = 9999L;
    /**
     * 管理员id
     */
    public static final Long ADMIN_ID = 1L;
    /**
     * 管理员名称
     */
    public static final String ADMIN_NAME = "管理员";
    /**
     * 接口文档的菜单名
     */
    public static final String API_MENU_URL = "/swagger-ui.html";
    /**
     * 监控管理的菜单名
     */
    public static final String API_DRUID_URL = "/druid";
    /**
     * SESSION_KICKOUT_KEY 代表session中表示管理员强制某人退出的key值
     * 管理员踢人时在要提的session中标记key为kickout为1或2
     * 当该session再次访问时如果session中该key为1或2则提示已被提出再销毁session
     */
    public static final String SESSION_KICKOUT_KEY = "kickout";
    /**
     * 达到最大登录数
     */
    public static final Integer SESSION_KICKOUT_TYPE_MAX = 1;
    /**
     * 被管理员踢出
     */
    public static final Integer SESSION_KICKOUT_TYPE_ADMIN = 2;

    /**
     * AES密钥
     */
    public static final byte[] AES_KEY = {83, 38, -88, 93, 60, -92, -102, -16, 51, -118, -58, 106, -3, 71, -70, -33};

    /**
     * rsa公钥
     */
    public static final String RSA_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCtWkQoNFop7LSJXfYscnvSJsA1HWOnDw5Y73vQpk7J7nr9636rUQSq4gi7byZvZs85mA5UhkxOPF0ke4eUlKEg8ksqKYVPIXOzmxu3GY3J1aLGWBXmoFHkQ1IFr8jrXfsLA+9vkb2Gam40KLebRyS9NYw4hhjDSGF1ZVoX00d2wwIDAQAB";

    /**
     * rsa私钥
     */
    public static final String RSA_PRIVATE_KEY = "9770db594c75c7f7bce9d151658c026648380064a5004abd70cd9d593557ff41f14de97e20585d3fb255a082b8ef5fe1d5322c96980143179e276e39c427b67794d437ad9a5e8a0498451581892287d6da241e70d4d8b818a635c486edbc5254f1362d277d556b45f72d8119c80dc7444a0aeb5b23e83d0f483bee7882d2bcaa4aa46984f5ceca816ded5df277f97d916df78b81d5c2dac8b30e9e74ac7ff95dbdee07d5b68d177835bbccd147fb138e431366167d1db88f8781509b40208eb1909b73cf4bc7f898d8dfe93c81a9de81aadb46e590326d83cb471d948170c0fb56ce20ec33d5cc1679a96d495ad2d020f58b779a3041547ffcc6d59256b0ee2010eb5acb5632d48b3e6261b226e851fe3a8ebc0be32395ed65a9624fec452b700e612ef613732d59b0a81a195530262abf18674f41a88299e5a085919a2a1c35b9c8398d86580f8c65f8e033d33e0f0955033a282f4338b89874d64b27d3bfd91a1ff212ac2dc894c14938d5d234e1b344626804b77522c937292cae274643e42c1362b1b9bd71620ed76b238843a057d2bd45a97e01f8cb9c948726f1942518c6676d1bb293d8943b30334ea53973b0ff1e87b09f6e317c9fb725b380865918117d6124dd73ac4681a85be2cd117335460c440e6dd62d93b0768c96d3e3d25cb77f2a08082a6f77c9a1412cdd3bc745bd67e6c7fda11e97bb271c261d60ac1b53c4df19a22f5ff9d773d1c8a2a804ac79d76235e723d2784e2fe69969b5cb43eeab00afb8948bebc4102816dcb0dea4a7004e8050ef9867a0b34aa4e6e001b74506fdd5d7b54886d40da69037a3520a8d07428475a3e7c86b13ac0296c36b9dfcfb306a419308e02f000c13b4d71b1047f14668194d51d562c81e82ad2c720b9dae4875c78a15548c009132f9dd1e0b0b4b86b5cd0990c827d0ec813b47c2d09bb73ad7da8d44f8b9f82f3439f806323d4dd6281edd4b2a29b5a3f123dba0477f275af84f760771807e2dd5df3be0490a429229215b70f079a0ec15e33b3321376c44e1a9c52e52bf408431a6174129d5f5865e7f8b3d89bcadfd585665eee0129db3f1e863c77b56cb44a66c0672ff7daee1e45b8bcdfd545d1c303d2b11dd330fe0c0b3f625ba58a7dda81453b0698fce755362bfc780d0c3353ecd2f6468f2815dd4d288798f3433a6bba982415c675ebf47caa8c204d35366428514973a";
}
